/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: SessionController
 * Author:   zhouheng
 * Date:     2019/6/29 18:03
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.golden.web.controller.security;

import com.zhouh.golden.security.properties.GoldenSecurityProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.session.SessionRegistry;
import org.springframework.security.web.DefaultRedirectStrategy;
import org.springframework.security.web.RedirectStrategy;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.Executor;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author zhouheng
 * @create 2019/6/29
 * @since 1.0.0
 */
@Slf4j
@Controller
public class SessionController {
    @Value("${server.servlet.session.timeout}")
    private long sessionTimeout = 0;

    private RedirectStrategy redirectStrategy = new DefaultRedirectStrategy();

    @Resource
    private SessionRegistry sessionRegistry;

    @Autowired
    private GoldenSecurityProperties securityProperties;
}